dy-lib=libmymath.so 

$(dy-lib):Add.o Sub.o Mul.o Div.o
	gcc -shared -o $@ $^

%.o:%.c # %是通配符，当前目录下所有.o和.c
	@gcc -fPIC -c $< # $<代表上面依赖关系中，依次执行gcc -c xxx.c

.PHONY:output
output:
	mkdir -p mymath_lib/include
	mkdir -p mymath_lib/lib
	cp -f *.h mymath_lib/include
	cp -f *.so mymath_lib/lib 
	
.PHONY:clean
clean:
	rm -rf *.o *.so mymath_lib 


